<template>
	<view class="container">
		<view class="doc-apply">
			<image v-if="status == 0" src="../../static/img_shenhe1.png"></image>
			<image v-else-if="status == 2" src="../../static/img_shenhe2.png" mode=""></image>
		</view>
		<view class="doc-apply-fail">
			<text v-if="status == 2">审核失败</text>
		</view>
		<view class="doc-apply-text">
			<text v-if="status == 0">请耐心等待，账号正在审核中....</text>
			<text v-else-if="status == 2">失败原因：{{reason}}</text>
		</view>
		<view class="doc-apply-addpages" v-if="status == 2" @click="changeadd">
			重新填写
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				status:'',
				reason:''
			}
		},
		onLoad(options) {
			this.status = options.status
			this.reason = options.reason
		},
		onShow() {
			
		},
		methods:{
			changeadd(){
				uni.showLoading({
					title:'加载中',
					success() {
						setTimeout(function(){
							uni.hideLoading()
							uni.reLaunch({
								url:'/pages/doc/info'
							})
						},1300)
					}
				})
			}
		}
	}
</script>

<style>
	@import url("../../common/docapply.css");
</style>
